﻿using System;

namespace SingletonPattern
{
    /// <summary>
    /// Auther : Jimmy.you
    /// Desc   : normal singleton
    /// Date   : 2018-07-19
    /// </summary>
    public class NormalSingleton
    {
        private static NormalSingleton _instance;

        private NormalSingleton() { }

        public static NormalSingleton GetInstance()
        {
            if (null == _instance)
            {
                _instance = new NormalSingleton();
            }

            return _instance;
        }
    }
}